﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Xceed.Wpf.AvalonDock.Layout;

namespace ProductTransfer
{
    /// <summary>
    /// Interaction logic for Main.xaml
    /// </summary>
    public partial class Main : Window
    {
        public Main()
        {
            InitializeComponent();
        }
        private void CreateDocumentContent(object sender, RoutedEventArgs e)
        {
            //var documentContent = new ProductTransfer.Order.OrderForm();
            var k = new ProductTransfer.Order.Page1();
            //documentContent.Title = "MyNewContent";
            LayoutDocument layoutDocument = new LayoutDocument { Title = "New Document" };

            //*********Here you could add whatever you want***********
            layoutDocument.Content = new StackPanel();
            k.Title = "New Design";
            //Add the new LayoutDocument to the existing array
            Contents.Children.Add(layoutDocument);
            Contents.Children.Add(k);
        }

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            var order = new Order.OrderMain();
            order.DataContext = new ViewModel.OrderMain();
            order.Owner = this;
            order.Show();
        }
    }
}
